package org.concordia.wsdl.filter;

import java.util.List;

public class TranditionalFilter implements Filter {

	/**
	 * check whether the 'subset' is the subset of a 'set'
	 */
	public boolean check(List<String> subset, List<String> set) {
		//System.out.println("xxxxx" + subset.toString());
		//System.out.println("xxxxx2"+ set.toString());
		
		for(String p : subset){
			if(!set.contains(p)){
				return false;
			}
		}
		
		return true;
	}

	public String getName() {
		return "TRANDITIONAL FILTER";
	}

}
